
const power = {
    // checkAction(val) {
    //     let powerList = []
    //     powerList = powerStr.split(',')

    //     let res = powerList.indexOf(val)
    //     return res==-1?false:true
    // },
    // 管理员、GM、仙友权限设置
    roleAction(value){
        var resResult = false
        let power = localStorage.getItem("power")
        if(power){
            let powerInfo = JSON.parse(power)
            if(powerInfo){
                let roleInfo = powerInfo.roleInfo
                if(roleInfo){
                    if(roleInfo.indexOf(value)!=-1){
                        resResult = true
                    }
                }
            }
        }
        return resResult
    },
}

export default power